<html>
<head><meta charset="utf-8"><title>How is ENV SCRIPT used? · t-infra · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/index.html">t-infra</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html">How is ENV SCRIPT used?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="238159198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238159198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238159198">(May 10 2021 at 15:16)</a>:</h4>
<p>In some Dockerfile like <code>src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile</code>, the last command is <code>ENV SCRIPT</code>. I thought that it was simply setting a value into the <code>SCRIPT</code> environment variable but maybe I'm missing something?</p>
<p>I'm asking about it because I install a npm module inside the Dockerfile but it's missing when the command is run later in <a href="https://github.com/rust-lang/rust/pull/84586">https://github.com/rust-lang/rust/pull/84586</a></p>
<p>So I think I'm missing some information on how to install the npm modules correctly.</p>



<a name="238160727"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238160727" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238160727">(May 10 2021 at 15:23)</a>:</h4>
<p>Have you been able to reproduce locally? Have you debugged on CI by trying to see what <em>is</em> installed, and whether for example it's just this line that's wrong - <a href="https://github.com/rust-lang/rust/pull/84586/files#diff-8479eab02701e686aedb15b567dc8fc31220c6e4efb9565ccc9d662b7fee2214R820">https://github.com/rust-lang/rust/pull/84586/files#diff-8479eab02701e686aedb15b567dc8fc31220c6e4efb9565ccc9d662b7fee2214R820</a> ?</p>



<a name="238161333"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238161333" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238161333">(May 10 2021 at 15:27)</a>:</h4>
<p>I can run it locally? :o</p>



<a name="238161406"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238161406" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238161406">(May 10 2021 at 15:27)</a>:</h4>
<p>That's very interesting gonna try that locally then. Might make things much simpler</p>



<a name="238161746"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238161746" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238161746">(May 10 2021 at 15:30)</a>:</h4>
<p>Also: I'm pretty sure it's working fine. I added the command I'm using in the <code>ENV SCRIPT</code> command and the list was empty. Meaning there is something not set correctly</p>



<a name="238161855"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238161855" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238161855">(May 10 2021 at 15:30)</a>:</h4>
<p>src/ci/docker/run.sh &lt;name of container&gt;, iirc</p>



<a name="238161932"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238161932" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238161932">(May 10 2021 at 15:30)</a>:</h4>
<p>ultimately I doubt there's much aid other than just trying to dump more information and see what's wrong that anyone here can offer, and I suspect right now the latency on that will be pretty high</p>



<a name="238162193"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238162193" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238162193">(May 10 2021 at 15:32)</a>:</h4>
<p>I'll continue to hard try then. Thanks for your answers!</p>



<a name="238162449"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238162449" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238162449">(May 10 2021 at 15:33)</a>:</h4>
<p><span class="user-mention" data-user-id="210316">@GuillaumeGomez</span> I think <code>npm list</code> needs the <code>--global</code> flag.</p>



<a name="238162588"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20is%20ENV%20SCRIPT%20used%3F/near/238162588" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> GuillaumeGomez <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20is.20ENV.20SCRIPT.20used.3F.html#238162588">(May 10 2021 at 15:34)</a>:</h4>
<p><span class="user-mention" data-user-id="120518">@Eric Huss</span> I didn't know about it, thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>